﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="store_list.aspx.cs" Inherits="admin_storage_store_list" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>仓库信息</title>
<link type="text/css" rel="stylesheet" href="../scripts/ui/skins/Aqua/css/ligerui-all.css" />
<link type="text/css" rel="stylesheet" href="../images/style.css" />
<script type="text/javascript" src="../scripts/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../scripts/ui/js/ligerBuild.min.js"></script>
<script type="text/javascript" src="../js/function.js"></script>
<link href="../select/skins/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../select/js/select_split.js"></script>
    <script type="text/javascript">
        //因局部刷新需重新加载js
        $(document).ready(function () {
            SetRowClass();
            ReloadJs();
        })      
    </script>
    <%--<script type="text/javascript">
        function selFunc() {
            $("#selText").text($("#sel").val())
        }
</script>--%>
</head>
<body class="mainbody">
<form id="form1" runat="server" >
 <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>   
    <div class="navigation">首页 &gt; 控制面板 &gt; 仓库信息</div>
    <div class="tools_box">
	    <div class="tools_bar">
		    <a href="store_edit.aspx?action=<%=ActionEnum.Add %>" class="tools_btn"><span><b class="add">添加仓库</b></span></a>
		    <a href="javascript:void(0);" onclick="checkAll(this);" class="tools_btn"><span><b class="all">全选</b></span></a>
            <asp:LinkButton ID="btnDelete" runat="server" CssClass="tools_btn" onclick="btnDelete_Click" 
            OnClientClick="return ExePostBack('btnDelete','删除仓库信息后不可恢复，您确定吗？');"><span><b class="delete">批量删除</b></span></asp:LinkButton>
        </div>
    </div>
     <!--列表展示.开始-->
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
    <asp:Repeater ID="rptList" runat="server">
    <HeaderTemplate>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
      <tr>
        <th width="6%">选择</th>
        <th width="15%" align="left">仓库名称</th>
        <th width="15%" align="left" >仓库状态</th>
        <th align="left">仓库地址</th>
        <th width="12%" align="left" >负责人</th>
        <th width="12%" align="left" >联系电话</th>
        <th width="10%" >操作</th>
      </tr>
    </HeaderTemplate>
    <ItemTemplate>
      <tr>  
        <td align="center"><asp:CheckBox ID="chkId" CssClass="checkall" runat="server" />
        <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" /></td>
        <td><a href="store_edit.aspx?action=<%#ActionEnum.Edit %>&id=<%#Eval("id")%>"><%#Eval("storage_name")%></a></td>
        <td><%#GetStorageStatus(Convert.ToInt32(Eval("storage_status")))%></td>  
        <td><asp:Label ID="Label2" runat="server" Text='<%# fcwms.Common.Tools.ClipString(Eval("storage_addr").ToString(),22,true)%>' ToolTip='<%# Eval("storage_addr")%>'></asp:Label></td>
        <td><%#Eval("hearder")%></td>    
        <td><%#Eval("telephone")%></td>
        <td align="center"><a href="store_edit.aspx?action=<%#ActionEnum.Edit %>&id=<%#Eval("id")%>">修改</a></td>
      </tr>
    </ItemTemplate>
    <FooterTemplate>
      <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"6\">暂无记录</td></tr>" : ""%>
      </table>
    </FooterTemplate>
    </asp:Repeater>  
     <!--列表展示.结束-->
    <div class="line15"></div>
    <div class="page_box">
        <div id="PageContent" runat="server" class="flickr right">
        </div>
        <div class="left"><%--显示
            <asp:DropDownList ID="ddlNum" runat="server" CssClass="select2" AutoPostBack="True"
                OnSelectedIndexChanged="ddlNum_SelectedIndexChanged1">
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>15</asp:ListItem>
                <asp:ListItem>20</asp:ListItem>
                <asp:ListItem>1</asp:ListItem>
            </asp:DropDownList>&nbsp;条/页  --%>
              显示 <asp:Button ID="btn10" runat="server" Text="10" CssClass="btnnum" onclick="btn10_Click"   />
             <asp:Button ID="btn20" runat="server" Text="20" CssClass="btnnum" onclick="btn20_Click"   />
             <asp:Button ID="btn50" runat="server" Text="50" CssClass="btnnum" onclick="btn50_Click"   />条/页&nbsp;
            共<asp:Label ID="lblCount" runat="server" Text=""></asp:Label>条记录
           <%-- <select autowidth="true" name="selNum"  id="selNum" runat="server" onserverchange="selNum_ServerChange" onchange="form1.submit();">
                <option value="40">40</option>
                <option value="3">3</option>
                <option value="2">2</option>
                <option value="5">5</option>
                <option value="1">1</option>
            </select>--%>
        </div>      
        <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
            runat="server" HorizontalAlign="Right" PageSize="10" OnPageChanged="AspNetPager1_PageChanged"
            NumericButtonCount="8" CurrentPageButtonPosition="Center" ShowDisabledButtons="false"
            AlwaysShowFirstLastPageNumber="true" NextPageText="&nbsp;&nbsp;&nbsp;下一页&nbsp;&nbsp;&nbsp;" PrevPageText="&nbsp;&nbsp;&nbsp;上一页&nbsp;&nbsp;&nbsp;" ShowFirstLast="False">
        </webdiyer:AspNetPager>
    </div>
      </ContentTemplate></asp:UpdatePanel>
    <div class="line10"></div>
</form>
</body>
</html>

